
public class Laptop {

		private String brand;
		private String model;
		private int ram;
		private int hardDriveCapacity;
		private double basePrice;
		private int processorSpeed;
		
		
		Laptop(){
			brand="";
			model="";
			ram=0;
			hardDriveCapacity=0;
			processorSpeed=0;
			basePrice=0.0;
			
		}
			Laptop(double basePrice){
				brand="";
				model="";
				ram=0;
				hardDriveCapacity=0;
				processorSpeed=0;
				
			}
			
			//acessors
			public String getBrand(){
					return brand;
			}
			public String getModel(){
				return model;
		}
			public int getRAM(){
				return ram;
		}
			public int getHardDrive(){
				return hardDriveCapacity;
		}
			public int getProcessorSpeed(){
				return processorSpeed;
		}
			public double getBasePrice(){
				return basePrice;
			}
			
			//mutators
			public void setBrand(String newBrand){
				brand=newBrand;
			}
			public void setModel(String newModel){
				model=newModel;
			}
			public void setRAM(int newRam){
				ram=newRam;
			}
			public void setHardDrive(int newHardDriveCapacity){
				hardDriveCapacity=newHardDriveCapacity;
			}
			public void setBasePrice(double newBasePrice){
				basePrice=newBasePrice;
			}
			public void setProcessorSpeed(int newSpeed){
				processorSpeed=newSpeed;
			}
			
			public double calculateFinalPrice(){
				double processorCost=processorSpeed*.1;
				double RAMCost=ram*.2;
				double hardDriveCost=hardDriveCapacity;
				double finalPrice=processorCost+RAMCost+hardDriveCost+(getBasePrice());
			return finalPrice;
	
				
			}
			
			public void printInfo(){
				System.out.println("Your Laptop:");
				System.out.println(brand+model);
				System.out.println(processorSpeed+" Mhz");
				System.out.println(ram+" MB RAM");
				System.out.println(hardDriveCapacity+" GB HDD");
				System.out.println("Price: "+calculateFinalPrice());

}
}